package com.lqq.demo8;

public class Computer {
    String brand;
    String memory;

    public Computer() {
    }

    public Computer(String brand, String memory) {
        this.brand = brand;
        this.memory = memory;
    }

    public void print(){
        System.out.println("品牌：" + this.brand + ",内存：" + this.memory);
    }
}
